package com.bingo.mpa.pojo;

import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;
import org.express.portal.persist.POJO;

public class Kong extends POJO
{
	private static final long serialVersionUID = 1L;
	private long kid;
	private byte carrier;
	private String syscode;
	private String token;
	private String key_;
	private String account;
	private java.sql.Timestamp req_time;
	private byte req_result;
	private String req_remark;
	private java.sql.Timestamp rsp_time;
	private byte rsp_result;
	private String rsp_remark;
	public Kong()
	{
		super._this_table_name = "P_KC";
	}
	public long getKid()
	{
		return kid;
	}
	public void setKid(long kid)
	{
		this.kid = kid;
	}
	public byte getCarrier()
	{
		return carrier;
	}
	public void setCarrier(byte carrier)
	{
		this.carrier = carrier;
	}
	public String getSyscode()
	{
		return syscode;
	}
	public void setSyscode(String syscode)
	{
		this.syscode = syscode;
	}
	public String getToken()
	{
		return token;
	}
	public void setToken(String token)
	{
		this.token = token;
	}
	public String getKey_()
	{
		return key_;
	}
	public void setKey_(String key_)
	{
		this.key_ = key_;
	}
	public String getAccount()
	{
		return account;
	}
	public void setAccount(String account)
	{
		this.account = account;
	}
	public java.sql.Timestamp getReq_time()
	{
		return req_time;
	}
	public void setReq_time(java.sql.Timestamp req_time)
	{
		this.req_time = req_time;
	}
	public byte getReq_result()
	{
		return req_result;
	}
	public void setReq_result(byte req_result)
	{
		this.req_result = req_result;
	}
	public String getReq_remark()
	{
		return req_remark;
	}
	public void setReq_remark(String req_remark)
	{
		this.req_remark = req_remark;
	}
	public java.sql.Timestamp getRsp_time()
	{
		return rsp_time;
	}
	public void setRsp_time(java.sql.Timestamp rsp_time)
	{
		this.rsp_time = rsp_time;
	}
	public byte getRsp_result()
	{
		return rsp_result;
	}
	public void setRsp_result(byte rsp_result)
	{
		this.rsp_result = rsp_result;
	}
	public String getRsp_remark()
	{
		return rsp_remark;
	}
	public void setRsp_remark(String rsp_remark)
	{
		this.rsp_remark = rsp_remark;
	}
	@SuppressWarnings("unchecked")
	protected Map<String, Object> listInsertableFields()
	{
		try
		{
			Map<String, Object> props = BeanUtils.describe(this);
			if (getId() <= 0)
			{
				if(props.containsKey("id"))
				{
					props.remove("id");
				}
				if(props.containsKey("kid"))
				{
					props.remove("kid");
				}
			}
			props.remove("class");
			return props;
		}
		catch (Exception e)
		{
			throw new RuntimeException("Exception when Fetching fields of " + this);
		}
	}
}
